package com.fwtai.pay.wechat.auth;

public interface Signer {

  SignatureResult sign(final byte[] message);

  class SignatureResult {

    protected final String sign;
    protected final String certificateSerialNumber;

    public String getSign() {
      return sign;
    }

    public String getCertificateSerialNumber() {
      return certificateSerialNumber;
    }

    public SignatureResult(final String sign,final String serialNumber) {
      this.sign = sign;
      this.certificateSerialNumber = serialNumber;
    }
  }
}